<template>
    <van-goods-action-icon :text="text" :icon="icon" :color="color" :badge="badge" :to="to"
                           @click="$emit('click')"/>
</template>

<script>
  import { GoodsActionIcon } from "vant"

  export default {
    name: "ProductActionIcon",
    props: {
      text: String,
      to: [Object, String],
      icon: String,
      color: String,
      badge: String,
    },
    components: {
      [GoodsActionIcon.name]: GoodsActionIcon,
    },
  }
</script>

<style scoped>

</style>
